package com.nju.crawler.controller;

import com.nju.crawler.domain.RepoInfoEntity;
import com.nju.crawler.repository.PersistService;
import com.nju.crawler.repository.jpa.RepoInfoDao;
import com.nju.crawler.service.CrawlService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Controller;

import javax.annotation.PostConstruct;
import java.util.ArrayList;
import java.util.List;

/**
 * @authorliyunfei
 * @date2022/11/11
 **/
@Controller
public class CrawlerWebController {
    @Value("${crawl.save-prefix-path}")
    String savePrefixPath;
    @Autowired
    CrawlService crawlService;
    @Autowired
    RepoInfoDao repoInfoDao;
    @Autowired
    PersistService persistService;
    @PostConstruct
    public void autoExecute(){
      // crawlService.singleCrawl(0,savePrefixPath);
      //  crawlService.crawlUserRepoInfo();
    }

}
